package com.ai.fortune_matrix.controller;

import com.ai.fortune_matrix.service.impl.ElasticSearchStore;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zjg
 * @Date: 2025/5/16 17:53
 * @Description:
 **/
@RequestMapping("/vector")
@RestController
public class VectorEsController {
    @Resource
    private ElasticSearchStore elasticSearchStore;


    @GetMapping("/rag/importDocument")
    public void importDocument() {
        elasticSearchStore.importDocuments();
    }
}
